﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 货位最新库存动态表
    /// </summary>
    [Table("PB_Stock")]
    public partial class PB_Stock
    {

        /// <summary>
        /// 主键ID
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 打包ID
        /// </summary>
        public String PackId { get; set; }

        /// <summary>
        /// 仓库id
        /// </summary>
        public string StorId { get; set; }

        /// <summary>
        /// 货位ID
        /// </summary>
        public String LocationId { get; set; }

        /// <summary>
        /// 包内物料数量
        /// </summary>
        public Double? StockNumber { get; set; }

        /// <summary>
        /// 物料id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public String CreatorName { get; set; }

        /// <summary>
        /// 操作人ID
        /// </summary>
        public String OperatorId { get; set; }

        /// <summary>
        /// 入库类型 1.成品入库 2.材料入库
        /// </summary>
        public Int32? Type { get; set; }

        /// <summary>
        /// 关联单号(TD_Receiving)
        /// </summary>
        public String OrderID { get; set; }

        /// <summary>
        /// 上架时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 是否新旧：0-旧；1-新
        /// </summary>
        public Int32? OldOrNew { get; set; }

        /// <summary>
        /// 类型：1默认。2.默认备货中
        /// </summary>
        public Int32? Style { get; set; }

        /// <summary>
        /// 是否占用
        /// </summary>
        public Int32? Locked { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? TS { get; set; }

        /// <summary>
        /// 货区ID
        /// </summary>
        public String AreaId { get; set; }

        /// <summary>
        /// 货架ID
        /// </summary>
        public String RackId { get; set; }

        /// <summary>
        /// 流转单Id
        /// </summary>
        public String CirBillId { get; set; }

        /// <summary>
        /// 成品Id
        /// </summary>
        public String JobId { get; set; }

    }
}